composition of functions domain and range